package com.demo;


import java.awt.im.InputMethodHighlight;
import java.util.stream.IntStream;

/**
 * Created by IntelliJ IDEA.
 * User: bj910
 * Date:2023-03-22
 * Time: 16:50
 * To change this template use File | Settings | File Templates.
 */
public class ForDemo {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(i);
        }

        System.out.println("------------------");
        IntStream.range(0,10).forEach(i-> System.out.println(i));
    }
}
